#define _CRT_SECURE_NO_WARNINGS
#include"stack.h"

int main()
{
	stack list;
	StackInit(&list);
	StackPush(&list, 1);
	printf("%d\n", StackTop(&list));
	StackPush(&list, 2);
	printf("%d\n", StackTop(&list));
	StackPush(&list, 3);
	printf("%d\n", StackTop(&list));

	printf("%d\n", StackSize(&list));

	StackPop(&list);
	printf("%d\n", StackTop(&list));
	StackPop(&list);
	printf("%d\n", StackTop(&list));
	StackPop(&list);

	StackDestroy(&list);
	return 0;
}